<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title>2.1.2. Tags vs. Tags</title>
        <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" title="Ref" charset="utf-8"/>
    </head>
    <body class="body">
    .gsp<p class="paragraph"/><div class="code"><pre>&#60;g:includeJs script=<span class="java&#45;quote">"myscript"</span> /&#62;</pre></div><p class="paragraph"/>
.ftl<p class="paragraph"/><div class="code"><pre>&#60;@g.includeJs script=<span class="java&#45;quote">"myscript"</span> /&#62;</pre></div><p class="paragraph"/>or<p class="paragraph"/><div class="code"><pre>&#91;@g.includeJs script=<span class="java&#45;quote">"myscript"</span> /&#93;</pre></div><p class="paragraph"/>
Parameter values are (arbitrary complex) expressions that are not quoted. So assuming you want to pass an integer to foo, &#60;&#64;foo bar=1 /&#62; is good, but &#60;&#64;foo bar="1" /&#62; is wrong as it passes in the value as a string (because "1" is a string literal, just like in Groovy). For the same reason, &#60;&#64;foo bar=x+1 /&#62; is good, but &#60;&#64;foo bar="${x+1}" /&#62; does something else.<p class="paragraph"/>
    </body>
</html>
